<template>
  <div class="mx-auto w-3/5" id="div-1">
    <a-typography-title :level="2" class="font-bold text-center !text-[#515c7a] mt-24" id="div-2"> 最新动态 </a-typography-title>

    <a-row class="mt-12" id="div-3" :gutter="20">
      <a-col :span="12" v-for="(item, index) in newsList" :key="index" :id="`div-4-${index}`">
        <div class="flex justify-between items-center" :id="`div-5-${index}`">
          <a-typography-link href="#" ellipsis class="py-2 text-[16px] !text-[#4d5d6e] !mb-0 block" :id="`div-6-${index}`">
            <a-tag color="#eb616a" :id="`div-7-${index}`">new</a-tag>
            {{ item.title }}
          </a-typography-link>
          <a-typography-paragraph class="py-2 !text-[#919aa4] !mb-0" :id="`div-8-${index}`">
            {{ item.date }}
          </a-typography-paragraph>
        </div>
      </a-col>
    </a-row>
    <a-typography-title :level="2" class="font-bold text-center !text-[#515c7a] mt-20" id="div-9"> 主营业务 </a-typography-title>
    <a-row class="mt-12" id="div-10" :gutter="40">
      <a-col :span="6" v-for="(item, index) in gameList" :key="index" :id="`div-11-${index}`" align="center">
        <a-image :src="item.image" class="object-cover aspect-[25/29]" :id="`div-12-${index}`" />
        <a-typography-link href="#" class="py-2 !text-[#515c7a] text-[20px] text-center block" :id="`div-13-${index}`">
          {{ item.name }}
        </a-typography-link>
      </a-col>
    </a-row>
    <a-typography-title :level="2" class="font-bold text-center !text-[#515c7a] mt-20" id="div-14"> 新闻资讯 </a-typography-title>
    <a-row class="mt-12 mb-10" id="div-15" :gutter="30">
      <a-col :span="8" v-for="(item, index) in infoSections" :key="index" :id="`div-16-${index}`">
        <a-card hoverable :bordered="false" :id="`div-17-${index}`" class="relative">
          <template #cover :id="`div-19-${index}`">
            <a-typography-title :level="3" class="text-center !text-[#fff] absolute top-2 left-0 z-10" :id="`div-191-${index}`">
              {{ item.title }}
            </a-typography-title>
            <a-image :src="item.icon" class="w-full object-cover" :id="`div-18-${index}`" />
          </template>
          <template #actions :id="`div-20-${index}`">
            <a-typography-link href="#" :id="`div-35-${index}`" class="text-[14px] !text-[#999]">了解更多</a-typography-link>
          </template>
          <a-typography-paragraph
            class="py-2 !text-[#515c7a] leading-7 !mb-0 px-5"
            :id="`div-21-${index}-${ind}`"
            v-for="(it, ind) in item.infoList"
            :key="ind"
          >
            <a-typography-link href="#" class="!text-[#515c7a] text-[17px]" :id="`div-22-${index}-${ind}`"
              >{{ it.date }}:{{ it.content }}</a-typography-link
            >
          </a-typography-paragraph>
        </a-card>
      </a-col>
    </a-row>
  </div>
</template>

<script setup lang="jsx">
  const newsList = ref([
    {
      image: 'https://picsum.photos/id/1/28/15',
      title: '瓦罗兰特辅助，新角色，新地图，新玩法',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/2/28/15',
      title: '瓦罗兰特闪退报错频发，你还能愉快玩耍',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/3/28/15',
      title: '无畏契约国服战绩查询软件，功能丰富',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/4/28/15',
      title: '永劫无间手游运营炸服：画质提升，爆改',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/5/28/15',
      title: '瓦罗兰特辅助，新角色，新地图，新玩法',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/6/28/15',
      title: '永劫无间手游运营炸服：画质提升，爆改',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/7/28/15',
      title: '穿越火线枪王之王 CF辅助工具：鸟人助手',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/8/28/15',
      title: '老黑卡盟排行榜前三，绝地求生低价卡',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/9/28/15',
      title: '卡盟绝地求生刺激战场：这款吃鸡游戏为',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/10/28/15',
      title: '高效辅助吃鸡卡盟，让你在吃鸡战场上轻',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/11/28/15',
      title: '无畏契约购分玩家账号被永久封怎么办？详',
      date: '2021-06-01',
    },
    {
      image: 'https://picsum.photos/id/12/28/15',
      title: '英雄联盟中与厄运小姐搭档的最佳五位辅助',
      date: '2021-06-01',
    },
  ]);
  const gameList = ref([
    {
      name: '和平精英专区',
      image: 'https://picsum.photos/id/13/250/290',
    },
    {
      name: '绝地求生专区',
      image: 'https://picsum.photos/id/14/250/290',
    },
    {
      name: '英雄联盟专区',
      image: 'https://picsum.photos/id/15/250/290',
    },
    {
      name: 'DNF专区',
      image: 'https://picsum.photos/id/16/250/290',
    },
  ]);
  const infoSections = ref([
    {
      title: '新闻资讯',
      icon: 'https://picsum.photos/id/17/360/174',
      infoList: [
        { date: '10-10', content: '瓦罗兰特辅助，新角色' },
        { date: '10-10', content: '高效辅助吃鸡卡盟，让你' },
        { date: '10-10', content: '瓦罗兰特闪退报错频发，' },
        { date: '10-10', content: '卡盟绝地求生刺激战场：' },
        { date: '10-10', content: '无畏契约国服战绩查询软' },
      ],
    },
    {
      title: '游戏攻略',
      icon: 'https://picsum.photos/id/18/360/174',
      infoList: [
        { date: '05-23', content: 'CF辅助助手' },
        { date: '10-14', content: '绝地求生PCL：XDD对4AM学习' },
        { date: '09-07', content: '吃鸡卡盟平台-pubg辅助卡盟' },
        { date: '09-07', content: '绝地求生辅助卡盟-低价卡' },
        { date: '09-07', content: 'DNF脚本辅助-地下城卡盟辅' },
      ],
    },
    {
      title: '帮助信息',
      icon: 'https://picsum.photos/id/19/360/174',
      infoList: [
        { date: '01-12', content: '绝地求生辅助找图-简单清' },
        { date: '09-23', content: '绝地求生黑号是什么意思' },
        { date: '09-13', content: '【平台声明】663卡盟免费' },
        { date: '09-13', content: '【售后说明】如何投诉与' },
        { date: '09-12', content: '如何在绝地求生中关闭电' },
      ],
    },
  ]);
</script>

<style></style>
